/* 设置css样式： ele 节点*/
function setCssProperty(ele, lst) {
	if(ele!=null) {
		if(lst.length == 2) {
			ele.style.setProperty(lst[0], lst[1]);
		}
		else if(lst.length > 2) {
			ele.style.setProperty(lst[0], lst[1], lst[2]);
		}
	}
}

/* 移除节点： ele 节点*/
function removeElement(ele) {
	if(ele!=null) {
		ele.parentNode.removeChild(ele);
	}
}

/* 根据ClassName移除节点：name  ClassName数组*/
function removeByClassName(name) {
	for(n=0; n<name.length; n++) {
		data = document.getElementsByClassName(name[n]);
		for(i=0; i<data.length; i++) {
			removeElement(data[i]);
		}
	}
}

/* 根据Id移除节点：name  Id数组*/
function removeByClassId(name) {
	for(n=0; n<name.length; n++) {
		data = document.getElementById(name[n]);
		removeElement(data);
		console.log(n);
	}
}

ClassName = ["ss-header_person", "related-read-box"];
Id = ["btn-call-app", "app-footer"];
removeByClassName(ClassName);
removeByClassId(Id);

setCssProperty(document.getElementById("app"), ["padding-bottom", "0px", "important"]);
